package com.hades.example.java.refactoring.before.c11.c11_8_extract_interface;

public class TimeSheet {
    // 员工为客户工作。计算客户应该支付的费用
    double charge(Employee emp, int days) {
        int base = emp.getRate() * days;
        if (emp.hasSpecialSkill())
            return base * 1.05;
        else return base;
    }
}